<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libraw-0.19.5
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libpng.html" title="libpng-1.6.37">Prev</a>
          <p>
            libpng-1.6.37
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="librsvg.html" title=
          "librsvg-2.48.2">Next</a>
          <p>
            librsvg-2.48.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libraw" name="libraw"></a>libraw-0.19.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libraw
        </h2>
        <p>
          <span class="application">Libraw</span> is a library for reading
          RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF,
          DNG, and others).
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.libraw.org/data/LibRaw-0.19.5.tar.gz">http://www.libraw.org/data/LibRaw-0.19.5.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 865ab9a40910709ff86988e8c0a7d146
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 23 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libraw Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>, <a class="xref"
          href="jasper.html" title="JasPer-2.0.14">JasPer-2.0.14</a>, and
          <a class="xref" href="lcms2.html" title="Little CMS-2.9">Little
          CMS-2.9</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="ulink" href=
          "http://www.libraw.org/download">LibRaw-demosaic-pack-GPL2</a> and
          <a class="ulink" href=
          "http://www.libraw.org/download">LibRaw-demosaic-pack-GPL3</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libraw">http://wiki.linuxfromscratch.org/blfs/wiki/libraw</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libraw
        </h2>
        <p>
          Install <span class="application">libraw</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr    \
            --enable-jpeg    \
            --enable-jasper  \
            --enable-lcms    \
            --disable-static \
            --docdir=/usr/share/doc/libraw-0.19.5 &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-jpeg</code></em>: This switch
          enables support for jpeg. Remove if you don't have <a class="xref"
          href="libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a> installed.
        </p>
        <p>
          <em class="parameter"><code>--enable-jasper</code></em>: This
          switch enables support for jasper. Remove if you don't have
          <a class="xref" href="jasper.html" title=
          "JasPer-2.0.14">JasPer-2.0.14</a> installed.
        </p>
        <p>
          <em class="parameter"><code>--enable-lcms</code></em>: This switch
          enables support for Little CMS2. Remove if you don't have <a class=
          "xref" href="lcms2.html" title="Little CMS-2.9">Little CMS-2.9</a>
          installed.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            All the installed programs are examples of libraw use.
          </p>
        </div>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">4channels, dcraw_emu, dcraw_half,
              half_mt, mem_image, multirender_test, postprocessing_benchmark,
              raw-identify, simple_dcraw, and unprocessed_raw</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libraw.so and libraw_r.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/libraw and
              /usr/share/doc/libraw-0.19.5</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="_4channels" name="_4channels"></a><span class=
                    "term"><span class=
                    "command"><strong>4channels</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    generates four TIFF files from RAW data, one file per
                    channel.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="dcraw_half" name="dcraw_half"></a><span class=
                    "term"><span class=
                    "command"><strong>dcraw_half</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    emulates "dcraw -h" (see <a class="ulink" href=
                    "http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">DCRAW
                    manpage</a>).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mem_image" name="mem_image"></a><span class=
                    "term"><span class=
                    "command"><strong>mem_image</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    emulates "dcraw [-4] [-6] [-e]" (see <a class="ulink"
                    href=
                    "http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">DCRAW
                    manpage</a>).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="postprocessing_benchmark" name=
                    "postprocessing_benchmark"></a><span class=
                    "term"><span class=
                    "command"><strong>postprocessing_benchmark</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates eight different renderings from one source file.
                    The first and fourth one should be identical.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="simple_dcraw" name="simple_dcraw"></a><span class=
                    "term"><span class=
                    "command"><strong>simple_dcraw</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    emulates call to "dcraw [-D] [-T] [-v] [-e] [-4]" (see
                    <a class="ulink" href=
                    "http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">DCRAW
                    manpage</a>).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="dcraw_emu" name="dcraw_emu"></a><span class=
                    "term"><span class=
                    "command"><strong>dcraw_emu</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an almost complete dcraw emulator (see <a class=
                    "ulink" href=
                    "http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">DCRAW
                    manpage</a>).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="half_mt" name="half_mt"></a><span class=
                    "term"><span class=
                    "command"><strong>half_mt</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    emulates call to "dcraw -h [-w] [-a] [-v]" (see <a class=
                    "ulink" href=
                    "http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">DCRAW
                    manpage</a>).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="multirender_test" name=
                    "multirender_test"></a><span class="term"><span class=
                    "command"><strong>multirender_test</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates eight different renderings from one source file.
                    The first and fourth one should be identical.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="raw-identify" name="raw-identify"></a><span class=
                    "term"><span class=
                    "command"><strong>raw-identify</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    emulates call to "dcraw -i [-v]" (see <a class="ulink"
                    href=
                    "http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">DCRAW
                    manpage</a>).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="unprocessed_raw" name=
                    "unprocessed_raw"></a><span class="term"><span class=
                    "command"><strong>unprocessed_raw</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    generates unprocessed raw image: with masked pixels and
                    without black subtraction.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 14:12:55 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libpng.html" title="libpng-1.6.37">Prev</a>
          <p>
            libpng-1.6.37
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="librsvg.html" title=
          "librsvg-2.48.2">Next</a>
          <p>
            librsvg-2.48.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
